package com.hakim.wfb.dao;

import com.hakim.wfb.bean.RechargeRecord;
import com.hakim.wfb.customer.params.recharge.GetUserRechargeWebPageParameter;
import com.hakim.wfb.customer.result.recharge.UserRechargeRecordView;
import com.hkfs.fundamental.database.PageDaoBase;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RechargeRecordDao extends PageDaoBase<RechargeRecord, Long> {

    /**
     * 查询用户充值记录
     *
     * @param pageParameter
     * @return
     */
    List<UserRechargeRecordView> queryRechargeRecord(GetUserRechargeWebPageParameter pageParameter);

    /**
     *统计用户充值记录
     * @param pageParameter
     * @return
     */
    Integer countRechargeRecord(GetUserRechargeWebPageParameter pageParameter);
}
